import Layout from '@/layout'

const website = {
  path: '/website',
  component: Layout,
  name: 'Website',
  meta: { title: '网站' },
  redirect: '/Website/index',
  children: [
    {
      path: 'content',
      name: 'ContentManager',
      component: () => import('@/views/site/index'),
      meta: { title: '内容管理', name: '32' },
      children: [
        {
          path: '/AttachmentCate/index',
          name: 'AttachmentCate',
          component: () => import('@/views/system/attachment'),
          meta: { title: '附件管理', name: '1' }
        },
        {
          path: '/Module/index',
          name: 'Model',
          component: () => import('@/views/site/content/contentModel/index'),
          meta: { title: '模型管理', name: '32' }
        },
        {
          path: 'modelField',
          name: 'modelField',
          hidden: true,
          component: () => import('@/views/site/content/contentModel/field'),
          meta: {
            title: '模型字段',
            guidePath: 'true',
            jumpPath: '/Module/index',
            name: '32'
          }
        },
        {
          path: '/Category/index',
          name: 'Category',
          component: () => import('@/views/site/content/column'),
          meta: { title: '栏目管理', name: '32' }
        },
        {
          path: '/addColumn',
          name: 'addColumn',
          component: () => import('@/views/site/content/addColumn'),
          meta: {
            title: '添加栏目',
            guidePath: 'true',
            jumpPath: '/Category/index',
            name: '32'
          }
        },
        {
          path: '/updateColumn',
          name: 'updateColumn',
          component: () => import('@/views/site/content/updateColumn'),
          meta: {
            title: '编辑栏目',
            guidePath: 'true',
            jumpPath: '/Category/index',
            name: '32'
          }
        },
        {
          path: '/Content/index',
          name: 'Content',
          component: () => import('@/views/site/content/columnContent/content'),
          meta: { title: '栏目内容', name: '32' }
        },
        {
          path: '/ColumnInfo',
          name: 'ColumnInfo',
          component: () => import('@/views/site/content/columnContent/info'),
          meta: {
            title: '栏目内容',
            guidePath: 'true',
            jumpPath: '/Content/index',
            name: '32'
          }
        },
        {
          path: '/addContent',
          name: 'addContent',
          component: () => import('@/views/site/content/columnContent/add'),
          meta: {
            title: '新增内容',
            guidePath: 'true',
            jumpPath: '/Content/index',
            name: '32'
          }
        },
        {
          path: '/updateContent',
          name: 'updateContent',
          component: () => import('@/views/site/content/columnContent/update'),
          meta: {
            title: '编辑内容',
            guidePath: 'true',
            jumpPath: '/Content/index',
            name: '32'
          }
        },
        {
          path: '/Tag/index',
          name: 'Tag',
          component: () => import('@/views/site/content/tag'),
          meta: { title: '标签管理', name: '32' }
        },
        {
          path: '/ContentTag/index',
          name: 'ContentTag',
          component: () => import('@/views/site/content/tagBuild'),
          meta: { title: '标签生成器', name: '32' }
        },
        {
          path: '/SlideCate/index',
          name: 'SlideCate',
          component: () => import('@/views/site/slide/index'),
          meta: { title: '幻灯片管理', name: '32' }
        },
        {
          path: '/Advertisement/index',
          component: () => import('@/views/market/seo/advert'),
          name: 'Advertisement',
          meta: { title: '广告管理', name: '98' }
        },
        {
          path: '/content/checkList',
          name: 'checkList',
          component: () => import('@/views/site/content/checkList'),
          meta: { title: '内容审核', name: '32' }
        }
      ]
    },
    {
      path: 'WebsiteManager',
      name: 'WebsiteManager',
      component: () => import('@/views/site/index'),
      meta: { title: '网站管理', name: '32' },
      children: [
        {
          path: '/Website/index',
          name: 'WebsiteList',
          component: () => import('@/views/site/site'),
          meta: { title: '网站列表', name: '32' }
        },
        {
          path: '/WebsiteSetting/index',
          name: 'WebsiteSetting',
          component: () => import('@/views/site/websiteSetting'),
          meta: { title: '网站设置', name: '32' }
        },
        {
          path: '/NavCate/index',
          name: 'NavCate',
          component: () => import('@/views/site/menu'),
          meta: { title: '前台菜单', name: '32' }
        },
        {
          path: 'mould',
          component: () => import('@/views/site/websiteTemp/index'),
          meta: { title: '模版管理', name: '32' },
          alwaysShow: true,
          children: [
            {
              path: '/TempleteLibrary/index',
              name: 'TemplateLibrary',
              component: () =>
                import('@/views/site/websiteTemp/templateLibrary'),
              meta: { title: '模版库', name: '32' }
            },
            {
              path: '/Theme/index',
              name: 'Theme',
              component: () => import('@/views/site/websiteTemp/mould'),
              meta: { title: '模版管理', name: '32' }
            },
            {
              path: '/Theme/files',
              name: 'files',
              component: () =>
                import('@/views/site/websiteTemp/components/files'),
              hidden: true,
              meta: {
                title: '所有文件',
                guidePath: true,
                jumpPath: '/Theme/index',
                name: '32'
              }
            },
            {
              path: '/Theme/tempFiles',
              name: 'tempFiles',
              component: () =>
                import('@/views/site/websiteTemp/components/tempFiles'),
              meta: {
                title: '模版文件',
                guidePath: true,
                jumpPath: '/Theme/index',
                name: '32'
              }
            }
          ]
        }
      ]
    },
    {
      path: '/Inquiry',
      component: () => import('@/views/Inquiry/index'),
      name: 'InquiryManager',
      meta: { title: '询盘管理', icon: 'el-icon-s-help' },
      children: [
        {
          path: '/Inquiry/index',
          name: 'Inquiry',
          component: () => import('@/views/Inquiry/list'),
          meta: { title: '询盘列表', name: '86' }
        },
        {
          path: '/InquiryCate/index',
          name: 'InquiryCate',
          component: () => import('@/views/Inquiry/inquiryCategory/index'),
          meta: { title: '询盘分类', name: '86' }
        },
        {
          path: '/InquiryEmail/index',
          name: 'InquiryEmail',
          component: () => import('@/views/Inquiry/inbox'),
          meta: { title: '询盘收件箱', name: '86' }
        }
      ]
    },
    {
      path: '/recruit',
      component: () => import('@/views/recruit/index'),
      name: 'recruit',
      meta: { title: '招聘管理' },
      children: [
        {
          path: '/Job/index',
          name: 'Job',
          component: () => import('@/views/recruit/job'),
          meta: { title: '岗位管理', name: '119' }
        },
        {
          path: '/JobCate/index',
          name: 'JobCate',
          component: () => import('@/views/recruit/jobCate'),
          meta: { title: '岗位分类', name: '119' }
        },
        {
          path: '/JobCity/index',
          name: 'JobCity',
          component: () => import('@/views/recruit/city'),
          meta: { title: '城市管理', name: '119' }
        }
      ]
    }
  ]
}
export default website
